//
//  UIBarButtonItem+Extension.m
//  wbOC
//
//  Created by sheji on 16/3/2.
//  Copyright (c) 2016年 sheji. All rights reserved.
//

#import "UIBarButtonItem+Extension.h"

@implementation UIBarButtonItem (Extension)

+ (instancetype)barButtonWithTitle:(NSString *)title imageName:(NSString *)imageName target:(id)target action:(SEL)action {
    
    UIButton *button = [UIButton buttonWithTitle:title imageName:imageName target:target action:action];
    
    return [[self alloc] initWithCustomView:button];
}
@end
